package com.cslg.yougou.front.controller;


import com.cslg.yougou.front.pojo.Result;
import com.cslg.yougou.front.service.GoodsTypeService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author zyw
 * @since 2020-11-06
 */
@Api(value="用户controller",tags={"商品分类接口"})
@RestController
@RequestMapping("/front/goods-type")
public class GoodsTypeController {
    @Autowired
    GoodsTypeService goodsTypeService;
    @GetMapping("/get-firstgoods-type")
    public Result getFirstgoodsType(@ApiParam(value = "用户的token",required = true) String token,
                               @ApiParam(value = "用户的时间戳",required = true) String current_time){
        return goodsTypeService.getFirstgoodsType(token,current_time);
    }
}
